﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ProjectDescription.aspx.cs" Inherits="ProjectDescription" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">


    <script>
        $(function () {
            $("#dialog-confirm").dialog({
                autoOpen: false,
                show: {
                    effect: "blind",
                    duration: 200
                },
                hide: {
                    effect: "blind",
                    duration: 200
                },
                resizable: false,
                height: 140,
                modal: true,
                buttons: {
                    "Accepter": function () {

                        $('#<%=btnCallMethod.ClientID%>').click();
                        $("this").click();



                        $(this).dialog("close");

                    },
                    "Annuller": function () {
                        $(this).dialog("close");
                    }

                },
                open: function () {
                    $(this).closest(".ui-dialog")
                        .find(".ui-button")
                        .addClass("button");
                }
            });

            $("#opener").click(function () {
                $("#dialog-confirm").dialog("open");
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <div id="dialog-confirm" title="Bekræftelse">
        <p>Du er nu ved at reservere dette projekt. Acceptere du dette vil du få tilsendt yderligere information.</p>
    </div>

    <div id="projectTitle">
        <asp:Label ID="lblTitle" Text="Title" runat="server" CssClass="descHeaderFont" />
    </div>
    <div class="projectViewLine">
        <%--En knap der bruges til btnReserve_click() i reserver funktionen.--%>
        <asp:Button Text="" ID="btnCallMethod" runat="server" OnClick="btnReserve_Click" Style="display: none;" />
        <asp:Label Text="'Reserved'" ID="lblReserved" runat="server" CssClass="float-right" />
    </div>
    <div class="clear"></div>
    <div class="descWrapper">
        <div></div>
        <asp:Label Text="Navn" runat="server" Width="76px" CssClass="lblDesc" /><asp:TextBox ID="lblName" Text="(Kontaktnavn)" runat="server" CssClass="txtDesc" Enabled="false"/>
        <asp:Label Text="Firmanavn" runat="server" Width="76px" CssClass="lblDesc" /><asp:TextBox ID="lblCompanyName" Text="(Firmaets navn)" runat="server" CssClass="txtDesc" Enabled="false"/>    
        <asp:Label Text="Start" runat="server" Width="76px" CssClass="lblDesc" /><asp:TextBox ID="lblStartTime" Text="01/01-14" runat="server" CssClass="txtDesc" Enabled="false"/>
        <asp:Label Text="Slut" runat="server" Width="76px" CssClass="lblDesc" /><asp:TextBox ID="lblEndTime" Text="02/02-14" runat="server" CssClass="txtDesc" Enabled="false"/>
    </div>

    <div class="projectViewLine">
        <asp:Label Text="Opgaven" runat="server" Width="75px" CssClass="lblDescO"/>
    
    <div class="txtDesc" style="width:460px; margin: auto; min-height:100px; padding-right: 10px;">
        <%--<asp:Label Text="Krav:" runat="server" /><br />--%>
        <asp:Repeater ID="rpAnswers" runat="server">
            <ItemTemplate>
                <asp:Label Text='<%#Eval("QuestionString") %>' runat="server" style="font: 12px arial; font-weight: bold" /><br />
                <asp:Label Text='<%#Eval("AnsAnswer") %>' runat="server" style="font: 12px arial;" /><br />
                <br />
            </ItemTemplate>
        </asp:Repeater>
    </div>
    </div>
    <div class="projectViewLine">
        <asp:Button Text="Gå til forsiden" runat="server" ID="btnGoToFront" OnClick="btnGoToFront_Click" CssClass="thanksButton" Style="float: left; margin-left:105px; margin-bottom: 40px;" />
        <asp:Button runat="server" ID="btnBackward" OnClick="btnBackward_Click" CssClass="buttonOff" style="margin-left:10px;" Text="Tilbage" />
        <div id="btnReserve" runat="server">
            
            
            <input type="button" value="Reserver" id="opener" class="thanksButton" style="margin-right: 105px;" />
        </div>
    </div>
</asp:Content>
